package com.cfgj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.sql.Time;
import java.util.Date;

public class GongGao {
    private Integer id;
    private String name;
    private String content;
    @TableField(value = "createtime",fill = FieldFill.INSERT)
    private Date createtime;
    private String faburen;

    public GongGao() {

    }

    public GongGao(Integer id, String name, String content, Time createtime, String faburen) {
        this.id = id;
        this.name = name;
        this.content = content;
        this.createtime = createtime;
        this.faburen = faburen;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getFaburen() {
        return faburen;
    }

    public void setFaburen(String faburen) {
        this.faburen = faburen;
    }

    @Override
    public String toString() {
        return "GongGao{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                ", createtime=" + createtime +
                ", faburen='" + faburen + '\'' +
                '}';
    }
}
